package com.it.code.util;

import lombok.Data;

import java.util.List;

/**
 * @ClassName: ModelInfo
 * @description: ModelInfo实体类模板
 * @author: 李东
 * @Date: 2020-7-20
 */
@Data
public class ModelInfo {

    //数据库中类型
    private int dbType;
    //属性类型
    private String type;
    //类型-只有名字
    private String simpleType;
    //属性名字
    private String name;
    //首字母大写属性名字
    private String upperName;
    //属性描述
    private String desc;
    //是否是主键
    private Boolean id;
    //列名
    private String column;
    //是否自增  YES自增，NO：非自增
    private String identity;

    public ModelInfo(int dbType, String type, String simpleType, String name, String upperName, String desc, Boolean id, String column, String identity) {
        this.dbType = dbType;
        this.type = type;
        this.simpleType = simpleType;
        this.name = name;
        this.upperName = upperName;
        this.desc = desc;
        this.id = id;
        this.column = column;
        this.identity = identity;
    }
}
